﻿<Window x:Class="Skynet.MeshClient.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
        xmlns:RegionNames="clr-namespace:Infrastructure.WpfClient.Constants;assembly=Infrastructure.WpfClient"
        xmlns:cal="http://www.codeplex.com/CompositeWPF"    
        xmlns:sys="clr-namespace:System;assembly=mscorlib"        
        xmlns:LateralRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.LateralRegion;assembly=Infrastructure.WpfClient"
        xmlns:TabRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.TabRegion;assembly=Infrastructure.WpfClient"
        xmlns:SingleActiveRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.SingleActiveRegion;assembly=Infrastructure.WpfClient"
        xmlns:ModalDialogRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.ModalDialog;assembly=Infrastructure.WpfClient"
        xmlns:ModalWindowRegion="clr-namespace:Infrastructure.WpfClient.Composite.Regions.ModalWindow;assembly=Infrastructure.WpfClient"
        xmlns:infControls ="clr-namespace:Infrastructure.WpfClient.Controls;assembly=Infrastructure.WpfClient"        
        HorizontalContentAlignment="Stretch" 
        VerticalContentAlignment="Stretch"       
        WindowStartupLocation="CenterScreen"         
        WindowState="Maximized"        
        ScrollViewer.HorizontalScrollBarVisibility="Auto" 
        ScrollViewer.VerticalScrollBarVisibility="Auto" 
        Title="Skynet"
        Background="{StaticResource DefaultBackgroundBrush}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ModalDialogRegion:DummyModalDialogContent cal:RegionManager.RegionName="ModalDialogWorkspace">

        </ModalDialogRegion:DummyModalDialogContent>
        <ModalWindowRegion:DummyModalWindowContent cal:RegionManager.RegionName="ModalWindowWorkspace">

        </ModalWindowRegion:DummyModalWindowContent>
        <Menu  Grid.Row="0" Grid.ColumnSpan="3" >
            <MenuItem Header="Administration">
                <MenuItem Header="Exam Categories Maintenance" Click="ExamCategoriesMaintenance_Click" />
            </MenuItem>
        </Menu>

        <Grid Grid.Row="1" Grid.ColumnSpan="3"  Margin="10,10,10,10"  >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ToggleButton Content="Journal" Name="cbNavigation" Foreground="White">
            </ToggleButton>
            <Popup  IsOpen="{Binding ElementName=cbNavigation,Path=IsChecked}"
                    PlacementTarget="{Binding ElementName=cbNavigation}"
                    AllowsTransparency="True"
                    StaysOpen="False"
                    PopupAnimation="Fade" Height="400" Width="300">
                <GroupBox Header="Journal">
                    <StackPanel Orientation="Vertical" Margin="10,10,10,10">
                        <TextBlock>add client</TextBlock>
                        <TextBlock>test client</TextBlock>
                    </StackPanel>
                </GroupBox>
            </Popup>
            <ToggleButton Content="Navigation" Name="cbJournal" Foreground="White" Grid.Column="1">
            </ToggleButton>
            <Popup  IsOpen="{Binding ElementName=cbJournal,Path=IsChecked}"
                    PlacementTarget="{Binding ElementName=cbJournal}"
                    AllowsTransparency="True"
                    StaysOpen="False"
                    PopupAnimation="Fade" Height="400" Width="300">
                <GroupBox Header="Navigation">
                    <StackPanel Orientation="Vertical" Margin="10,10,10,10">
                        <Button >www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                        <Button>www.google.com</Button>
                    </StackPanel>
                </GroupBox>
            </Popup>

            <ToolBarTray Grid.Column="2"  Background="{StaticResource DefaultBackgroundBrush}">
                <ToolBar>

                    <Button>Uno</Button>
                    <Slider Minimum="0" Name="slheight" Height="20" Width="100"
        Maximum="300"
        IsSnapToTickEnabled="True"
        TickFrequency="2"></Slider>
                    <Slider Minimum="0" Name="slwidth" Height="20" Width="100"
        Maximum="300"
        IsSnapToTickEnabled="True"
        TickFrequency="2"></Slider>

                </ToolBar>
            </ToolBarTray>

            <StackPanel Orientation="Horizontal" Grid.Column="3">
                <TextBox Width="100"  ></TextBox>
                <Button Width="100" >Search</Button>
            </StackPanel>
        </Grid>

        <LateralRegion:LateralRegionControl ExpandDirection="Right" Grid.Row="2"   Grid.Column="0" Header="Tool Area"  cal:RegionManager.RegionName="ToolWorkspace"  >

        </LateralRegion:LateralRegionControl>
        <SingleActiveRegion:SingleActiveControl cal:RegionManager.RegionName="BodySingleWorkspace" 
                        Name="BodySingleWorkspace"
                        VerticalAlignment="Top" HorizontalAlignment="Left"
                        VerticalContentAlignment="Top" HorizontalContentAlignment="Left"
                        Grid.Row="2"  Grid.Column="1" Margin="5,5,5,5" Visibility="Collapsed"
                        Style="{StaticResource SingleActiveWorkspaceStyle}"                                                
                        IsVisibleChanged="BodySingleWorkspace_IsVisibleChanged">
        </SingleActiveRegion:SingleActiveControl>

        <Frame Grid.Row="2"  Grid.Column="1" Margin="5,5,5,5" Visibility="Collapsed" Name="frameWorkspace"  
               IsVisibleChanged="frameWorkspace_IsVisibleChanged" 
               NavigationUIVisibility="Visible"
                Style="{StaticResource FrameWorkspaceStyle}"       
               cal:RegionManager.RegionName="{x:Static RegionNames:RegionNames.FrameWorkspace}"               
               cal:RegionManager.RegionContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=NavigationService}">
        </Frame>
        <!--<infControls:InfMediaControl Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="300" Width="300">
            
        </infControls:InfMediaControl>-->
        <!--<infControls:InfMediaControl3D Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="800" Width="800" >

        </infControls:InfMediaControl3D>-->
        <!--<infControls:TextBlockSpeech Text="Welcome, Skynet System" Grid.Column="1" Grid.Row="2"  Width="200" Height="40">

        </infControls:TextBlockSpeech>-->

        <TabRegion:AnimatedTabControl Grid.Row="2"  
                    Grid.Column="1" Margin="1,1,1,1"  
                    Name="TabWorkspace"                    
                    Visibility="Collapsed"                     
                    cal:RegionManager.RegionName="TabWorkspace"      
                     Style="{StaticResource TabWorkspaceStyle}"
                    ItemContainerStyle="{StaticResource TabWorkSpaceItemStyle}"
                    IsVisibleChanged="TabWorkspace_IsVisibleChanged">
        </TabRegion:AnimatedTabControl>

        <LateralRegion:LateralRegionControl ExpandDirection="Left" Grid.Row="2"  Grid.RowSpan="2" Grid.Column="2" Header="Rearch Area"  cal:RegionManager.RegionName="ResearchWorkspace" >

        </LateralRegion:LateralRegionControl>

        <Expander Grid.Row="3"  Grid.Column="0" Grid.ColumnSpan="2" ExpandDirection="Up" Header="Status">
            <Button>Click</Button>
        </Expander>

        <StatusBar   Grid.ColumnSpan="3"  Grid.Row="4">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <TextBlock>Left Side</TextBlock>
            <StatusBarItem Grid.Column="1">

                <TextBlock >Right Side</TextBlock>


            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>
